package com.bootdo.market.dao;

import com.bootdo.market.domain.AccountDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author jinse
 * @email market@jinse.com
 * @date 2019-03-28 18:09:01
 */
@Mapper
public interface AccountDao {

    AccountDO get(Integer id);

    List<AccountDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(AccountDO account);

    int update(AccountDO account);

    int remove(Integer id);

    int batchRemove(Integer[] ids);

    AccountDO findByUserName(String username);

}
